﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.WMS.Entitys;

/// <summary>
/// 出库明细记录实体.
/// </summary>
[SugarTable("wms_busi_stock_out","出库明细记录")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiStockOutEntity:CLDEntityBase
{
    /// <summary>
    /// 物料id.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId",ColumnDescription = "物料id")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 物料code.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode",ColumnDescription = "物料code")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialName",ColumnDescription = "物料名称")]
    public string MaterialName { get; set; }

    /// <summary>
    /// 库位id.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationId",ColumnDescription = "库位id")]
    public string LocationId { get; set; }

    /// <summary>
    /// 库位code.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationCode",ColumnDescription = "库位code")]
    public string LocationCode { get; set; }

    /// <summary>
    /// 库位名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationName",ColumnDescription = "库位名称")]
    public string LocationName { get; set; }

    /// <summary>
    /// 库位类型.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationType",ColumnDescription = "库位类型")]
    public string LocationType { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty",ColumnDescription = "数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// 托盘号.
    /// </summary>
    [SugarColumn(ColumnName = "F_Lot",ColumnDescription = "托盘号")]
    public string Lot { get; set; }

    /// <summary>
    /// 批次号.
    /// </summary>
    [SugarColumn(ColumnName = "F_Batch",ColumnDescription = "批次号")]
    public string Batch { get; set; }

    /// <summary>
    /// 最小单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unit",ColumnDescription = "最小单位")]
    public string Unit { get; set; }

    /// <summary>
    /// 条码.
    /// </summary>
    [SugarColumn(ColumnName = "F_Barcode", ColumnDescription = "条码")]
    public string Barcode { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site",ColumnDescription = "Site")]
    public string Site { get; set; }

    /// <summary>
    /// 生产日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_ProduceDate",ColumnDescription = "生产日期")]
    public DateTime? ProduceDate { get; set; }

    /// <summary>
    /// 客户id.
    /// </summary>
    [SugarColumn(ColumnName = "F_CustomerId",ColumnDescription = "客户id")]
    public string CustomerId { get; set; }

    /// <summary>
    /// 客户code.
    /// </summary>
    [SugarColumn(ColumnName = "F_CustomerCode",ColumnDescription = "客户code")]
    public string CustomerCode { get; set; }

    /// <summary>
    /// 客户名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_CustomerName",ColumnDescription = "客户名称")]
    public string CustomerName { get; set; }

    /// <summary>
    /// 出库时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_OperatorDate",ColumnDescription = "出库时间")]
    public DateTime? OperatorDate { get; set; }

    /// <summary>
    /// 出库人.
    /// </summary>
    [SugarColumn(ColumnName = "F_Operator",ColumnDescription = "出库人")]
    public string Operator { get; set; }
}